#ifndef MUSICLYRIC_H
#define MUSICLYRIC_H

#include <QWidget>
#include "head.h"


namespace Ui {
class MusicLyric;
}

class MusicLyric : public QWidget
{
    Q_OBJECT

public:
    explicit MusicLyric(QWidget *parent = nullptr);
    ~MusicLyric();

    void parseJsonLy(QByteArray jsonByte);
    void onPositionChanged(qint64 position);


    void fetchLyrics(int songId);
        QMap<int,QString> lrcMap;
public slots:


    void replyFinishedLy(QNetworkReply* reply);


private:
    Ui::MusicLyric *ui;
    QStandardItemModel *pModelForm4;

    QNetworkAccessManager *managerLy;

    //QMap<int,QString> lrcMap;

    QMediaPlayer * playerLy;
    QMediaPlaylist * playlistLy;
    QList <int> misicIdListLy;    //存放音乐的id号


};

#endif // MUSICLYRIC_H
